package freehorizons.engine.attributes;

public class StaticWeight extends Weight
{

	private final double value_;

	public StaticWeight( double value )
	{
		if ( value < 0 )
		{
			throw new IllegalArgumentException( "Parameter 'value' must not be null." );
		}
		value_ = value;
	}

	@Override
	public double getValue( )
	{
		return value_;
	}

	@Override
	public void setValue( double value )
	{
		throw new UnsupportedOperationException( "This weight attribute may not be modified." );
	}

}
